package com.action;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts2.ServletActionContext;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

import com.dao.RecruitDetailDao;
import com.po.RecruitDetailInfoPO;

@Controller
public class RecruitDetailAction {
	private RecruitDetailInfoPO detailInfoPO;
	@Autowired
	private RecruitDetailDao recruitDetailDao;

	public String showInfo() {
		HttpServletRequest request = ServletActionContext.getRequest();
		int id = Integer.parseInt(request.getParameter("id"));
		detailInfoPO = recruitDetailDao.findRecruitDetailById(id);
		
		return "show";
	}

	public RecruitDetailInfoPO getDetailInfoPO() {
		return detailInfoPO;
	}

	public void setDetailInfoPO(RecruitDetailInfoPO detailInfoPO) {
		this.detailInfoPO = detailInfoPO;
	}

	
}
